package com.dong.gmall.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Consumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring/consumer.xml");
        OrderService orderService = ctx.getBean(OrderService.class);
        orderService.initOrder("1");
        System.in.read();
    }
}
